home *** CD-ROM | disk | FTP | other *** search
/ CrystalVision Software Se… Wiki Wonder - Wikipedia / CrystalVision Software Services 703: The Wiki Wonder - Wikipedia.iso / 0703 / Business / CodeX Apps / CodeX.exe / CodeX / httpd.conf next >
Encoding:
Text File  |  2006-12-22  |  37.8 KB  |  1,127 lines

  1. ##
  2. ## httpd.conf -- Apache HTTP server configuration file
  3. ##
  4.  
  5. #
  6. # Based upon the NCSA server configuration files originally by Rob McCool.
  7. #
  8. # This is the main Apache server configuration file.  It contains the
  9. # configuration directives that give the server its instructions.
  10. # See <URL:http://httpd.apache.org/docs/> for detailed information about
  11. # the directives.
  12. #
  13. # Do NOT simply read the instructions in here without understanding
  14. # what they do.  They're here only as hints or reminders.  If you are unsure
  15. # consult the online docs. You have been warned.  
  16. #
  17. # After this file is processed, the server will look for and process
  18. # /private/etc/httpd/srm.conf and then /private/etc/httpd/access.conf
  19. # unless you have overridden these with ResourceConfig and/or
  20. # AccessConfig directives here.
  21. #
  22. # The configuration directives are grouped into three basic sections:
  23. #  1. Directives that control the operation of the Apache server process as a
  24. #     whole (the 'global environment').
  25. #  2. Directives that define the parameters of the 'main' or 'default' server,
  26. #     which responds to requests that aren't handled by a virtual host.
  27. #     These directives also provide default values for the settings
  28. #     of all virtual hosts.
  29. #  3. Settings for virtual hosts, which allow Web requests to be sent to
  30. #     different IP addresses or hostnames and have them handled by the
  31. #     same Apache server process.
  32. #
  33. # Configuration and logfile names: If the filenames you specify for many
  34. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  35. # server will use that explicit path.  If the filenames do *not* begin
  36. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  37. # with ServerRoot set to "/usr/local/apache" will be interpreted by the
  38. # server as "/usr/local/apache/logs/foo.log".
  39. #
  40.  
  41. ### Section 1: Global Environment
  42. #
  43. # The directives in this section affect the overall operation of Apache,
  44. # such as the number of concurrent requests it can handle or where it
  45. # can find its configuration files.
  46. #
  47.  
  48. #
  49. # ServerType is either inetd, or standalone.  Inetd mode is only supported on
  50. # Unix platforms.
  51. #
  52. ServerType standalone
  53.  
  54. #
  55. # ServerRoot: The top of the directory tree under which the server's
  56. # configuration, error, and log files are kept.
  57. #
  58. # NOTE!  If you intend to place this on an NFS (or otherwise network)
  59. # mounted filesystem then please read the LockFile documentation
  60. # (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>);
  61. # you will save yourself a lot of trouble.
  62. #
  63. ServerRoot "/usr"
  64.  
  65. #
  66. # The LockFile directive sets the path to the lockfile used when Apache
  67. # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
  68. # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
  69. # its default value. The main reason for changing it is if the logs
  70. # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
  71. # DISK. The PID of the main server process is automatically appended to
  72. # the filename. 
  73. #
  74. #LockFile "/private/var/run/httpd.lock"
  75.  
  76. #
  77. # PidFile: The file in which the server should record its process
  78. # identification number when it starts.
  79. #
  80. PidFile "/private/var/run/httpd.pid"
  81.  
  82. #
  83. # ScoreBoardFile: File used to store internal server process information.
  84. # Not all architectures require this.  But if yours does (you'll know because
  85. # this file will be  created when you run Apache) then you *must* ensure that
  86. # no two invocations of Apache share the same scoreboard file.
  87. #
  88. ScoreBoardFile "/private/var/run/httpd.scoreboard"
  89.  
  90. #
  91. # In the standard configuration, the server will process httpd.conf (this 
  92. # file, specified by the -f command line option), srm.conf, and access.conf 
  93. # in that order.  The latter two files are now distributed empty, as it is 
  94. # recommended that all directives be kept in a single file for simplicity.  
  95. # The commented-out values below are the built-in defaults.  You can have the 
  96. # server ignore these files altogether by using "/dev/null" (for Unix) or
  97. # "nul" (for Win32) for the arguments to the directives.
  98. #
  99. #ResourceConfig /private/etc/httpd/srm.conf
  100. #AccessConfig /private/etc/httpd/access.conf
  101.  
  102. #
  103. # Timeout: The number of seconds before receives and sends time out.
  104. #
  105. Timeout 300
  106.  
  107. #
  108. # KeepAlive: Whether or not to allow persistent connections (more than
  109. # one request per connection). Set to "Off" to deactivate.
  110. #
  111. KeepAlive On
  112.  
  113. #
  114. # MaxKeepAliveRequests: The maximum number of requests to allow
  115. # during a persistent connection. Set to 0 to allow an unlimited amount.
  116. # We recommend you leave this number high, for maximum performance.
  117. #
  118. MaxKeepAliveRequests 100
  119.  
  120. #
  121. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  122. # same client on the same connection.
  123. #
  124. KeepAliveTimeout 15
  125.  
  126. #
  127. # Server-pool size regulation.  Rather than making you guess how many
  128. # server processes you need, Apache dynamically adapts to the load it
  129. # sees --- that is, it tries to maintain enough server processes to
  130. # handle the current load, plus a few spare servers to handle transient
  131. # load spikes (e.g., multiple simultaneous requests from a single
  132. # Netscape browser).
  133. #
  134. # It does this by periodically checking how many servers are waiting
  135. # for a request.  If there are fewer than MinSpareServers, it creates
  136. # a new spare.  If there are more than MaxSpareServers, some of the
  137. # spares die off.  The default values are probably OK for most sites.
  138. #
  139. MinSpareServers 1
  140. MaxSpareServers 5
  141.  
  142. #
  143. # Number of servers to start initially --- should be a reasonable ballpark
  144. # figure.
  145. #
  146. StartServers 1
  147.  
  148. #
  149. # Limit on total number of servers running, i.e., limit on the number
  150. # of clients who can simultaneously connect --- if this limit is ever
  151. # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
  152. # It is intended mainly as a brake to keep a runaway server from taking
  153. # the system with it as it spirals down...
  154. #
  155. MaxClients 150
  156.  
  157. #
  158. # MaxRequestsPerChild: the number of requests each child process is
  159. # allowed to process before the child dies.  The child will exit so
  160. # as to avoid problems after prolonged use when Apache (and maybe the
  161. # libraries it uses) leak memory or other resources.  On most systems, this
  162. # isn't really needed, but a few (such as Solaris) do have notable leaks
  163. # in the libraries. For these platforms, set to something like 10000
  164. # or so; a setting of 0 means unlimited.
  165. #
  166. # NOTE: This value does not include keepalive requests after the initial
  167. #       request per connection. For example, if a child process handles
  168. #       an initial request and 10 subsequent "keptalive" requests, it
  169. #       would only count as 1 request towards this limit.
  170. #
  171. MaxRequestsPerChild 100000
  172.  
  173. #
  174. # Listen: Allows you to bind Apache to specific IP addresses and/or
  175. # ports, instead of the default. See also the <VirtualHost>
  176. # directive.
  177. #
  178. #Listen 3000
  179. #Listen 12.34.56.78:80
  180. Listen 1200
  181. #
  182. # BindAddress: You can support virtual hosts with this option. This directive
  183. # is used to tell the server which IP address to listen to. It can either
  184. # contain "*", an IP address, or a fully qualified Internet domain name.
  185. # See also the <VirtualHost> and Listen directives.
  186. #
  187. #BindAddress *
  188.  
  189. #
  190. # Dynamic Shared Object (DSO) Support
  191. #
  192. # To be able to use the functionality of a module which was built as a DSO you
  193. # have to place corresponding `LoadModule' lines at this location so the
  194. # directives contained in it are actually available _before_ they are used.
  195. # Please read the file http://httpd.apache.org/docs/dso.html for more
  196. # details about the DSO mechanism and run `httpd -l' for the list of already
  197. # built-in (statically linked and thus always available) modules in your httpd
  198. # binary.
  199. #
  200. # Note: The order in which modules are loaded is important.  Don't change
  201. # the order below without expert advice.
  202. #
  203. # Example:
  204. # LoadModule foo_module libexec/mod_foo.so
  205. #LoadModule vhost_alias_module libexec/httpd/mod_vhost_alias.so
  206. #LoadModule env_module         libexec/httpd/mod_env.so
  207. LoadModule config_log_module  libexec/httpd/mod_log_config.so
  208. #LoadModule mime_magic_module  libexec/httpd/mod_mime_magic.so
  209. LoadModule mime_module        libexec/httpd/mod_mime.so
  210. LoadModule negotiation_module libexec/httpd/mod_negotiation.so
  211. #LoadModule status_module      libexec/httpd/mod_status.so
  212. #LoadModule info_module        libexec/httpd/mod_info.so
  213. LoadModule includes_module    libexec/httpd/mod_include.so
  214. LoadModule autoindex_module   libexec/httpd/mod_autoindex.so
  215. LoadModule dir_module         libexec/httpd/mod_dir.so
  216. LoadModule cgi_module         libexec/httpd/mod_cgi.so
  217. LoadModule asis_module        libexec/httpd/mod_asis.so
  218. LoadModule imap_module        libexec/httpd/mod_imap.so
  219. LoadModule action_module      libexec/httpd/mod_actions.so
  220. #LoadModule speling_module     libexec/httpd/mod_speling.so
  221. LoadModule userdir_module     libexec/httpd/mod_userdir.so
  222. LoadModule alias_module       libexec/httpd/mod_alias.so
  223. LoadModule rewrite_module     libexec/httpd/mod_rewrite.so
  224. LoadModule access_module      libexec/httpd/mod_access.so
  225. LoadModule auth_module        libexec/httpd/mod_auth.so
  226. #LoadModule anon_auth_module   libexec/httpd/mod_auth_anon.so
  227. #LoadModule dbm_auth_module    libexec/httpd/mod_auth_dbm.so
  228. #LoadModule digest_module      libexec/httpd/mod_digest.so
  229. #LoadModule proxy_module       libexec/httpd/libproxy.so
  230. #LoadModule cern_meta_module   libexec/httpd/mod_cern_meta.so
  231. #LoadModule expires_module     libexec/httpd/mod_expires.so
  232. #LoadModule headers_module     libexec/httpd/mod_headers.so
  233. #LoadModule usertrack_module   libexec/httpd/mod_usertrack.so
  234. LoadModule log_forensic_module libexec/httpd/mod_log_forensic.so
  235. #LoadModule unique_id_module   libexec/httpd/mod_unique_id.so
  236. LoadModule setenvif_module    libexec/httpd/mod_setenvif.so
  237. #LoadModule dav_module         libexec/httpd/libdav.so
  238. #LoadModule ssl_module         libexec/httpd/libssl.so
  239. #LoadModule perl_module        libexec/httpd/libperl.so
  240. #LoadModule php4_module        libexec/httpd/libphp4.so
  241. LoadModule hfs_apple_module   libexec/httpd/mod_hfs_apple.so
  242. LoadModule bonjour_module     libexec/httpd/mod_bonjour.so
  243.  
  244. #  Reconstruction of the complete module list from all available modules
  245. #  (static and shared ones) to achieve correct module execution order.
  246. #  [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
  247. ClearModuleList
  248. #AddModule mod_vhost_alias.c
  249. #AddModule mod_env.c
  250. AddModule mod_log_config.c
  251. #AddModule mod_mime_magic.c
  252. AddModule mod_mime.c
  253. AddModule mod_negotiation.c
  254. #AddModule mod_status.c
  255. #AddModule mod_info.c
  256. AddModule mod_include.c
  257. AddModule mod_autoindex.c
  258. AddModule mod_dir.c
  259. AddModule mod_cgi.c
  260. AddModule mod_asis.c
  261. AddModule mod_imap.c
  262. AddModule mod_actions.c
  263. #AddModule mod_speling.c
  264. AddModule mod_userdir.c
  265. AddModule mod_alias.c
  266. AddModule mod_rewrite.c
  267. AddModule mod_access.c
  268. AddModule mod_auth.c
  269. #AddModule mod_auth_anon.c
  270. #AddModule mod_auth_dbm.c
  271. #AddModule mod_digest.c
  272. #AddModule mod_proxy.c
  273. #AddModule mod_cern_meta.c
  274. #AddModule mod_expires.c
  275. #AddModule mod_headers.c
  276. #AddModule mod_usertrack.c
  277. AddModule mod_log_forensic.c
  278. #AddModule mod_unique_id.c
  279. AddModule mod_so.c
  280. AddModule mod_setenvif.c
  281. #AddModule mod_dav.c
  282. #AddModule mod_ssl.c
  283. #AddModule mod_perl.c
  284. #AddModule mod_php4.c
  285. AddModule mod_hfs_apple.c
  286. AddModule mod_bonjour.c
  287.  
  288. #
  289. # ExtendedStatus controls whether Apache will generate "full" status
  290. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  291. # Off) when the "server-status" handler is called. The default is Off.
  292. #
  293. #ExtendedStatus On
  294.  
  295. ### Section 2: 'Main' server configuration
  296. #
  297. # The directives in this section set up the values used by the 'main'
  298. # server, which responds to any requests that aren't handled by a
  299. # <VirtualHost> definition.  These values also provide defaults for
  300. # any <VirtualHost> containers you may define later in the file.
  301. #
  302. # All of these directives may appear inside <VirtualHost> containers,
  303. # in which case these default settings will be overridden for the
  304. # virtual host being defined.
  305. #
  306.  
  307. #
  308. # If your ServerType directive (set earlier in the 'Global Environment'
  309. # section) is set to "inetd", the next few directives don't have any
  310. # effect since their settings are defined by the inetd configuration.
  311. # Skip ahead to the ServerAdmin directive.
  312. #
  313.  
  314. #
  315. # Port: The port to which the standalone server listens. For
  316. # ports < 1023, you will need httpd to be run as root initially.
  317. #
  318. Port 1200
  319.  
  320. #
  321. # If you wish httpd to run as a different user or group, you must run
  322. # httpd as root initially and it will switch.  
  323. #
  324. # User/Group: The name (or #number) of the user/group to run httpd as.
  325. #  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
  326. #  . On HPUX you may not be able to use shared memory as nobody, and the
  327. #    suggested workaround is to create a user www and use that user.
  328. #  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
  329. #  when the value of (unsigned)Group is above 60000; 
  330. #  don't use Group "#-1" on these systems!
  331. #
  332. User www
  333. Group www
  334.  
  335. #
  336. # ServerAdmin: Your address, where problems with the server should be
  337. # e-mailed.  This address appears on some server-generated pages, such
  338. # as error documents.
  339. #
  340. #ServerAdmin webmaster@example.com
  341.  
  342. #
  343. # ServerName allows you to set a host name which is sent back to clients for
  344. # your server if it's different than the one the program would get (i.e., use
  345. # "www" instead of the host's real name).
  346. #
  347. # Note: You cannot just invent host names and hope they work. The name you 
  348. # define here must be a valid DNS name for your host. If you don't understand
  349. # this, ask your network administrator.
  350. # If your host doesn't have a registered DNS name, enter its IP address here.
  351. # You will have to access it by its address (e.g., http://123.45.67.89/)
  352. # anyway, and this will make redirections work in a sensible way.
  353. #
  354. # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your 
  355. # machine always knows itself by this address. If you use Apache strictly for 
  356. # local testing and development, you may use 127.0.0.1 as the server name.
  357. #
  358. #ServerName new.host.name
  359.  
  360. #
  361. # DocumentRoot: The directory out of which you will serve your
  362. # documents. By default, all requests are taken from this directory, but
  363. # symbolic links and aliases may be used to point to other locations.
  364. #
  365. DocumentRoot "/CodeX_Apps/"
  366.  
  367. #
  368. # Each directory to which Apache has access, can be configured with respect
  369. # to which services and features are allowed and/or disabled in that
  370. # directory (and its subdirectories). 
  371. #
  372. # First, we configure the "default" to be a very restrictive set of 
  373. # permissions.  
  374. #
  375. <Directory />
  376.     Options FollowSymLinks
  377.     AllowOverride None
  378. </Directory>
  379.  
  380. #
  381. # Note that from this point forward you must specifically allow
  382. # particular features to be enabled - so if something's not working as
  383. # you might expect, make sure that you have specifically enabled it
  384. # below.
  385. #
  386.  
  387. #
  388. # This should be changed to whatever you set DocumentRoot to.
  389. #
  390. <Directory "/CodeX_Apps/">
  391.  
  392. #
  393. # This may also be "None", "All", or any combination of "Indexes",
  394. # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
  395. #
  396. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  397. # doesn't give it to you.
  398. #
  399.     Options Indexes FollowSymLinks MultiViews
  400.  
  401. #
  402. # This controls which options the .htaccess files in directories can
  403. # override. Can also be "All", or any combination of "Options", "FileInfo", 
  404. # "AuthConfig", and "Limit"
  405. #
  406.     AllowOverride None
  407.  
  408. #
  409. # Controls who can get stuff from this server.
  410. #
  411.     Order allow,deny
  412.     Allow from all
  413. </Directory>
  414.  
  415. #
  416. # UserDir: The name of the directory which is appended onto a user's home
  417. # directory if a ~user request is received.
  418. #
  419. <IfModule mod_userdir.c>
  420.     UserDir Sites
  421. </IfModule>
  422.  
  423. #
  424. # Control access to UserDir directories.  The following is an example
  425. # for a site where these directories are restricted to read-only.
  426. #
  427. #<Directory /Users/*/Sites>
  428. #    AllowOverride FileInfo AuthConfig Limit
  429. #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  430. #    <Limit GET POST OPTIONS PROPFIND>
  431. #        Order allow,deny
  432. #        Allow from all
  433. #    </Limit>
  434. #    <LimitExcept GET POST OPTIONS PROPFIND>
  435. #        Order deny,allow
  436. #        Deny from all
  437. #    </LimitExcept>
  438. #</Directory>
  439.  
  440. #
  441. # DirectoryIndex: Name of the file or files to use as a pre-written HTML
  442. # directory index.  Separate multiple entries with spaces.
  443. #
  444. <IfModule mod_dir.c>
  445.     DirectoryIndex index.html
  446. </IfModule>
  447.  
  448. #
  449. # AccessFileName: The name of the file to look for in each directory
  450. # for access control information.
  451. #
  452. AccessFileName .htaccess
  453.  
  454. #
  455. # The following lines prevent .htaccess files from being viewed by
  456. # Web clients.  Since .htaccess files often contain authorization
  457. # information, access is disallowed for security reasons.  Comment
  458. # these lines out if you want Web visitors to see the contents of
  459. # .htaccess files.  If you change the AccessFileName directive above,
  460. # be sure to make the corresponding changes here.
  461. #
  462. # Also, folks tend to use names such as .htpasswd for password
  463. # files, so this will protect those as well.
  464. #
  465. <Files ~ "^\.([Hh][Tt]|[Dd][Ss]_[Ss])">
  466.     Order allow,deny
  467.     Deny from all
  468.     Satisfy All
  469. </Files>
  470.  
  471. #
  472. # Apple specific filesystem protection.
  473.  
  474. <Files "rsrc">
  475.     Order allow,deny
  476.     Deny from all
  477.     Satisfy All
  478. </Files>
  479.  
  480. <Directory  ~ ".*\.\.namedfork">
  481.     Order allow,deny
  482.     Deny from all
  483.     Satisfy All
  484. </Directory>
  485.  
  486. #
  487. # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
  488. # document that was negotiated on the basis of content. This asks proxy
  489. # servers not to cache the document. Uncommenting the following line disables
  490. # this behavior, and proxies will be allowed to cache the documents.
  491. #
  492. #CacheNegotiatedDocs
  493.  
  494. #
  495. # UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
  496. # Apache needs to construct a self-referencing URL (a URL that refers back
  497. # to the server the response is coming from) it will use ServerName and
  498. # Port to form a "canonical" name.  With this setting off, Apache will
  499. # use the hostname:port that the client supplied, when possible.  This
  500. # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
  501. #
  502. UseCanonicalName On
  503.  
  504. #
  505. # TypesConfig describes where the mime.types file (or equivalent) is
  506. # to be found.
  507. #
  508. <IfModule mod_mime.c>
  509.     TypesConfig /private/etc/httpd/mime.types
  510. </IfModule>
  511.  
  512. #
  513. # DefaultType is the default MIME type the server will use for a document
  514. # if it cannot otherwise determine one, such as from filename extensions.
  515. # If your server contains mostly text or HTML documents, "text/plain" is
  516. # a good value.  If most of your content is binary, such as applications
  517. # or images, you may want to use "application/octet-stream" instead to
  518. # keep browsers from trying to display binary files as though they are
  519. # text.
  520. #
  521. DefaultType text/plain
  522.  
  523. #
  524. # The mod_mime_magic module allows the server to use various hints from the
  525. # contents of the file itself to determine its type.  The MIMEMagicFile
  526. # directive tells the module where the hint definitions are located.
  527. # mod_mime_magic is not part of the default server (you have to add
  528. # it yourself with a LoadModule [see the DSO paragraph in the 'Global
  529. # Environment' section], or recompile the server and include mod_mime_magic
  530. # as part of the configuration), so it's enclosed in an <IfModule> container.
  531. # This means that the MIMEMagicFile directive will only be processed if the
  532. # module is part of the server.
  533. #
  534. <IfModule mod_mime_magic.c>
  535.     MIMEMagicFile /private/etc/httpd/magic
  536. </IfModule>
  537.  
  538. #
  539. # HostnameLookups: Log the names of clients or just their IP addresses
  540. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  541. # The default is off because it'd be overall better for the net if people
  542. # had to knowingly turn this feature on, since enabling it means that
  543. # each client request will result in AT LEAST one lookup request to the
  544. # nameserver.
  545. #
  546. HostnameLookups Off
  547.  
  548. #
  549. # ErrorLog: The location of the error log file.
  550. # If you do not specify an ErrorLog directive within a <VirtualHost>
  551. # container, error messages relating to that virtual host will be
  552. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  553. # container, that host's errors will be logged there and not here.
  554. #
  555. ErrorLog "/private/var/log/httpd/error_log"
  556.  
  557. #
  558. # LogLevel: Control the number of messages logged to the error_log.
  559. # Possible values include: debug, info, notice, warn, error, crit,
  560. # alert, emerg.
  561. #
  562. LogLevel warn
  563.  
  564. #
  565. # The following directives define some format nicknames for use with
  566. # a CustomLog directive (see below).
  567. #
  568. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  569. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  570. LogFormat "%{Referer}i -> %U" referer
  571. LogFormat "%{User-agent}i" agent
  572.  
  573. #
  574. # The location and format of the access logfile (Common Logfile Format).
  575. # If you do not define any access logfiles within a <VirtualHost>
  576. # container, they will be logged here.  Contrariwise, if you *do*
  577. # define per-<VirtualHost> access logfiles, transactions will be
  578. # logged therein and *not* in this file.
  579. #
  580. CustomLog "/private/var/log/httpd/access_log" common
  581.  
  582. #
  583. # If you would like to have agent and referer logfiles, uncomment the
  584. # following directives.
  585. #
  586. #CustomLog "/private/var/log/httpd/referer_log" referer
  587. #CustomLog "/private/var/log/httpd/agent_log" agent
  588.  
  589. #
  590. # If you prefer a single logfile with access, agent, and referer information
  591. # (Combined Logfile Format) you can use the following directive.
  592. #
  593. #CustomLog "/private/var/log/httpd/access_log" combined
  594.  
  595. #
  596. # Optionally add a line containing the server version and virtual host
  597. # name to server-generated pages (error documents, FTP directory listings,
  598. # mod_status and mod_info output etc., but not CGI generated documents).
  599. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  600. # Set to one of:  On | Off | EMail
  601. #
  602. ServerSignature On
  603.  
  604. # EBCDIC configuration:
  605. # (only for mainframes using the EBCDIC codeset, currently one of:
  606. # Fujitsu-Siemens' BS2000/OSD, IBM's OS/390 and IBM's TPF)!!
  607. # The following default configuration assumes that "text files"
  608. # are stored in EBCDIC (so that you can operate on them using the
  609. # normal POSIX tools like grep and sort) while "binary files" are
  610. # stored with identical octets as on an ASCII machine.
  611. #
  612. # The directives are evaluated in configuration file order, with
  613. # the EBCDICConvert directives applied before EBCDICConvertByType.
  614. #
  615. # If you want to have ASCII HTML documents and EBCDIC HTML documents
  616. # at the same time, you can use the file extension to force
  617. # conversion off for the ASCII documents:
  618. # > AddType       text/html .ahtml
  619. # > EBCDICConvert Off=InOut .ahtml
  620. #
  621. # EBCDICConvertByType  On=InOut text/* message/* multipart/*
  622. # EBCDICConvertByType  On=In    application/x-www-form-urlencoded
  623. # EBCDICConvertByType  On=InOut application/postscript model/vrml
  624. # EBCDICConvertByType Off=InOut */*
  625.  
  626.  
  627. #
  628. # Aliases: Add here as many aliases as you need (with no limit). The format is 
  629. # Alias fakename realname
  630. #
  631. <IfModule mod_alias.c>
  632.  
  633.     #
  634.     # Note that if you include a trailing / on fakename then the server will
  635.     # require it to be present in the URL.  So "/icons" isn't aliased in this
  636.     # example, only "/icons/".  If the fakename is slash-terminated, then the 
  637.     # realname must also be slash terminated, and if the fakename omits the 
  638.     # trailing slash, the realname must also omit it.
  639.     #
  640.     Alias /icons/ "/usr/share/httpd/icons/"
  641.  
  642.     <Directory "/usr/share/httpd/icons">
  643.         Options Indexes MultiViews
  644.         AllowOverride None
  645.         Order allow,deny
  646.         Allow from all
  647.     </Directory>
  648.  
  649.     # This Alias will project the on-line documentation tree under /manual/
  650.     # even if you change the DocumentRoot. Comment it if you don't want to 
  651.     # provide access to the on-line documentation.
  652.     #
  653.     Alias /manual/ "/Library/WebServer/Documents/manual/"
  654.  
  655.     <Directory "/Library/WebServer/Documents/manual">
  656.         Options Indexes FollowSymlinks MultiViews
  657.         AllowOverride None
  658.         Order allow,deny
  659.         Allow from all
  660.     </Directory>
  661.  
  662.     #
  663.     # ScriptAlias: This controls which directories contain server scripts.
  664.     # ScriptAliases are essentially the same as Aliases, except that
  665.     # documents in the realname directory are treated as applications and
  666.     # run by the server when requested rather than as documents sent to the client.
  667.     # The same rules about trailing "/" apply to ScriptAlias directives as to
  668.     # Alias.
  669.     #
  670.     ScriptAlias /cgi-bin/ "/Library/WebServer/CGI-Executables/"
  671.  
  672.     #
  673.     # "/Library/WebServer/CGI-Executables" should be changed to whatever your ScriptAliased
  674.     # CGI directory exists, if you have that configured.
  675.     #
  676.     <Directory "/Library/WebServer/CGI-Executables">
  677.         AllowOverride None
  678.         Options None
  679.         Order allow,deny
  680.         Allow from all
  681.     </Directory>
  682.  
  683. </IfModule>
  684. # End of aliases.
  685.  
  686. #
  687. # Redirect allows you to tell clients about documents which used to exist in
  688. # your server's namespace, but do not anymore. This allows you to tell the
  689. # clients where to look for the relocated document.
  690. # Format: Redirect old-URI new-URL
  691. #
  692.  
  693. #
  694. # Directives controlling the display of server-generated directory listings.
  695. #
  696. <IfModule mod_autoindex.c>
  697.  
  698.     #
  699.     # FancyIndexing is whether you want fancy directory indexing or standard
  700.     #
  701.     IndexOptions FancyIndexing
  702.  
  703.     #
  704.     # AddIcon* directives tell the server which icon to show for different
  705.     # files or filename extensions.  These are only displayed for
  706.     # FancyIndexed directories.
  707.     #
  708.     AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  709.  
  710.     AddIconByType (TXT,/icons/text.gif) text/*
  711.     AddIconByType (IMG,/icons/image2.gif) image/*
  712.     AddIconByType (SND,/icons/sound2.gif) audio/*
  713.     AddIconByType (VID,/icons/movie.gif) video/*
  714.  
  715.     AddIcon /icons/binary.gif .bin .exe
  716.     AddIcon /icons/binhex.gif .hqx
  717.     AddIcon /icons/tar.gif .tar
  718.     AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  719.     AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  720.     AddIcon /icons/a.gif .ps .ai .eps
  721.     AddIcon /icons/layout.gif .html .shtml .htm .pdf
  722.     AddIcon /icons/text.gif .txt
  723.     AddIcon /icons/c.gif .c
  724.     AddIcon /icons/p.gif .pl .py
  725.     AddIcon /icons/f.gif .for
  726.     AddIcon /icons/dvi.gif .dvi
  727.     AddIcon /icons/uuencoded.gif .uu
  728.     AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  729.     AddIcon /icons/tex.gif .tex
  730.     AddIcon /icons/bomb.gif core
  731.  
  732.     AddIcon /icons/back.gif ..
  733.     AddIcon /icons/hand.right.gif README
  734.     AddIcon /icons/folder.gif ^^DIRECTORY^^
  735.     AddIcon /icons/blank.gif ^^BLANKICON^^
  736.  
  737.     #
  738.     # DefaultIcon is which icon to show for files which do not have an icon
  739.     # explicitly set.
  740.     #
  741.     DefaultIcon /icons/unknown.gif
  742.  
  743.     #
  744.     # AddDescription allows you to place a short description after a file in
  745.     # server-generated indexes.  These are only displayed for FancyIndexed
  746.     # directories.
  747.     # Format: AddDescription "description" filename
  748.     #
  749.     #AddDescription "GZIP compressed document" .gz
  750.     #AddDescription "tar archive" .tar
  751.     #AddDescription "GZIP compressed tar archive" .tgz
  752.  
  753.     #
  754.     # ReadmeName is the name of the README file the server will look for by
  755.     # default, and append to directory listings.
  756.     #
  757.     # HeaderName is the name of a file which should be prepended to
  758.     # directory indexes. 
  759.     #
  760.     ReadmeName README.html
  761.     HeaderName HEADER.html
  762.  
  763.     #
  764.     # IndexIgnore is a set of filenames which directory indexing should ignore
  765.     # and not include in the listing.  Shell-style wildcarding is permitted.
  766.     #
  767.     IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  768.  
  769. </IfModule>
  770. # End of indexing directives.
  771.  
  772. #
  773. # Document types.
  774. #
  775. <IfModule mod_mime.c>
  776.  
  777.     #
  778.     # AddLanguage allows you to specify the language of a document. You can
  779.     # then use content negotiation to give a browser a file in a language
  780.     # it can understand.  
  781.     #
  782.     # Note 1: The suffix does not have to be the same as the language 
  783.     # keyword --- those with documents in Polish (whose net-standard 
  784.     # language code is pl) may wish to use "AddLanguage pl .po" to 
  785.     # avoid the ambiguity with the common suffix for perl scripts.
  786.     #
  787.     # Note 2: The example entries below illustrate that in quite
  788.     # some cases the two character 'Language' abbreviation is not
  789.     # identical to the two character 'Country' code for its country,
  790.     # E.g. 'Danmark/dk' versus 'Danish/da'.
  791.     #
  792.     # Note 3: In the case of 'ltz' we violate the RFC by using a three char 
  793.     # specifier. But there is 'work in progress' to fix this and get 
  794.     # the reference data for rfc1766 cleaned up.
  795.     #
  796.     # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
  797.     # French (fr) - German (de) - Greek-Modern (el)
  798.     # Italian (it) - Korean (kr) - Norwegian (no) - Norwegian Nynorsk (nn)
  799.     # Portugese (pt) - Luxembourgeois* (ltz)
  800.     # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cs)
  801.     # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
  802.     # Russian (ru)
  803.     #
  804.     AddCharset UTF-8        .utf8
  805.     AddLanguage da .dk
  806.     AddLanguage nl .nl
  807.     AddLanguage en .en
  808.     AddLanguage et .ee
  809.     AddLanguage fr .fr
  810.     AddLanguage de .de
  811.     AddLanguage el .el
  812.     AddLanguage he .he
  813.     AddCharset ISO-8859-8 .iso8859-8
  814.     AddLanguage it .it
  815.     AddLanguage ja .ja
  816.     AddCharset ISO-2022-JP .jis
  817.     AddLanguage kr .kr
  818.     AddCharset ISO-2022-KR .iso-kr
  819.     AddLanguage nn .nn
  820.     AddLanguage no .no
  821.     AddLanguage pl .po
  822.     AddCharset ISO-8859-2 .iso-pl
  823.     AddLanguage pt .pt
  824.     AddLanguage pt-br .pt-br
  825.     AddLanguage ltz .lu
  826.     AddLanguage ca .ca
  827.     AddLanguage es .es
  828.     AddLanguage sv .sv
  829.     AddLanguage cs .cz .cs
  830.     AddLanguage ru .ru
  831.     AddLanguage zh-TW .zh-tw
  832.     AddCharset Big5         .Big5    .big5
  833.     AddCharset WINDOWS-1251 .cp-1251
  834.     AddCharset CP866        .cp866
  835.     AddCharset ISO-8859-5   .iso-ru
  836.     AddCharset KOI8-R       .koi8-r
  837.     AddCharset UCS-2        .ucs2
  838.     AddCharset UCS-4        .ucs4
  839.  
  840.     # LanguagePriority allows you to give precedence to some languages
  841.     # in case of a tie during content negotiation.
  842.     #
  843.     # Just list the languages in decreasing order of preference. We have
  844.     # more or less alphabetized them here. You probably want to change this.
  845.     #
  846.     <IfModule mod_negotiation.c>
  847.         LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
  848.     </IfModule>
  849.  
  850.     #
  851.     # AddType allows you to tweak mime.types without actually editing it, or to
  852.     # make certain files to be certain types.
  853.     #
  854.     AddType application/x-tar .tgz
  855.  
  856.     #
  857.     # AddEncoding allows you to have certain browsers uncompress
  858.     # information on the fly. Note: Not all browsers support this.
  859.     # Despite the name similarity, the following Add* directives have nothing
  860.     # to do with the FancyIndexing customization directives above.
  861.     #
  862.     AddEncoding x-compress .Z
  863.     AddEncoding x-gzip .gz .tgz
  864.     #
  865.     # If the AddEncoding directives above are commented-out, then you
  866.     # probably should define those extensions to indicate media types:
  867.     #
  868.     #AddType application/x-compress .Z
  869.     #AddType application/x-gzip .gz .tgz
  870.  
  871.     #
  872.     # AddHandler allows you to map certain file extensions to "handlers",
  873.     # actions unrelated to filetype. These can be either built into the server
  874.     # or added with the Action command (see below)
  875.     #
  876.     # If you want to use server side includes, or CGI outside
  877.     # ScriptAliased directories, uncomment the following lines.
  878.     #
  879.     # To use CGI scripts:
  880.     #
  881.     #AddHandler cgi-script .cgi
  882.  
  883.     #
  884.     # To use server-parsed HTML files
  885.     #
  886.     #AddType text/html .shtml
  887.     #AddHandler server-parsed .shtml
  888.  
  889.     #
  890.     # Uncomment the following line to enable Apache's send-asis HTTP file
  891.     # feature
  892.     #
  893.     #AddHandler send-as-is asis
  894.  
  895.     #
  896.     # If you wish to use server-parsed imagemap files, use
  897.     #
  898.     #AddHandler imap-file map
  899.  
  900.     #
  901.     # To enable type maps, you might want to use
  902.     #
  903.     #AddHandler type-map var
  904.  
  905. </IfModule>
  906. # End of document types.
  907.  
  908. #
  909. # Action lets you define media types that will execute a script whenever
  910. # a matching file is called. This eliminates the need for repeated URL
  911. # pathnames for oft-used CGI file processors.
  912. # Format: Action media/type /cgi-script/location
  913. # Format: Action handler-name /cgi-script/location
  914. #
  915.  
  916. #
  917. # MetaDir: specifies the name of the directory in which Apache can find
  918. # meta information files. These files contain additional HTTP headers
  919. # to include when sending the document
  920. #
  921. #MetaDir .web
  922.  
  923. #
  924. # MetaSuffix: specifies the file name suffix for the file containing the
  925. # meta information.
  926. #
  927. #MetaSuffix .meta
  928.  
  929. #
  930. # Customizable error response (Apache style)
  931. #  these come in three flavors
  932. #
  933. #    1) plain text
  934. #ErrorDocument 500 "The server made a boo boo.
  935. #  n.b.  the single leading (") marks it as text, it does not get output
  936. #
  937. #    2) local redirects
  938. #ErrorDocument 404 /missing.html
  939. #  to redirect to local URL /missing.html
  940. #ErrorDocument 404 /cgi-bin/missing_handler.pl
  941. #  N.B.: You can redirect to a script or a document using server-side-includes.
  942. #
  943. #    3) external redirects
  944. #ErrorDocument 402 http://some.other-server.com/subscription_info.html
  945. #  N.B.: Many of the environment variables associated with the original
  946. #  request will *not* be available to such a script.
  947.  
  948. #
  949. # Customize behaviour based on the browser
  950. #
  951. <IfModule mod_setenvif.c>
  952.  
  953.     #
  954.     # The following directives modify normal HTTP response behavior.
  955.     # The first directive disables keepalive for Netscape 2.x and browsers that
  956.     # spoof it. There are known problems with these browser implementations.
  957.     # The second directive is for Microsoft Internet Explorer 4.0b2
  958.     # which has a broken HTTP/1.1 implementation and does not properly
  959.     # support keepalive when it is used on 301 or 302 (redirect) responses.
  960.     #
  961.     BrowserMatch "Mozilla/2" nokeepalive
  962.     BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  963.  
  964.     #
  965.     # The following directive disables HTTP/1.1 responses to browsers which
  966.     # are in violation of the HTTP/1.0 spec by not being able to grok a
  967.     # basic 1.1 response.
  968.     #
  969.     BrowserMatch "RealPlayer 4\.0" force-response-1.0
  970.     BrowserMatch "Java/1\.0" force-response-1.0
  971.     BrowserMatch "JDK/1\.0" force-response-1.0
  972.  
  973. </IfModule>
  974. # End of browser customization directives
  975.  
  976. #
  977. # Allow server status reports, with the URL of http://servername/server-status
  978. # Change the ".your-domain.com" to match your domain to enable.
  979. #
  980. #<Location /server-status>
  981. #    SetHandler server-status
  982. #    Order deny,allow
  983. #    Deny from all
  984. #    Allow from .your-domain.com
  985. #</Location>
  986.  
  987. #
  988. # Allow remote server configuration reports, with the URL of
  989. # http://servername/server-info (requires that mod_info.c be loaded).
  990. # Change the ".your-domain.com" to match your domain to enable.
  991. #
  992. #<Location /server-info>
  993. #    SetHandler server-info
  994. #    Order deny,allow
  995. #    Deny from all
  996. #    Allow from .your-domain.com
  997. #</Location>
  998.  
  999. #
  1000. # There have been reports of people trying to abuse an old bug from pre-1.1
  1001. # days.  This bug involved a CGI script distributed as a part of Apache.
  1002. # By uncommenting these lines you can redirect these attacks to a logging 
  1003. # script on phf.apache.org.  Or, you can record them yourself, using the script
  1004. # support/phf_abuse_log.cgi.
  1005. #
  1006. #<Location /cgi-bin/phf*>
  1007. #    Deny from all
  1008. #    ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
  1009. #</Location>
  1010.  
  1011. #
  1012. # Proxy Server directives. Uncomment the following lines to
  1013. # enable the proxy server:
  1014. #
  1015. #<IfModule mod_proxy.c>
  1016. #    ProxyRequests On
  1017.  
  1018. #    <Directory proxy:*>
  1019. #        Order deny,allow
  1020. #        Deny from all
  1021. #        Allow from .your-domain.com
  1022. #    </Directory>
  1023.  
  1024.     #
  1025.     # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  1026.     # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  1027.     # Set to one of: Off | On | Full | Block
  1028.     #
  1029. #    ProxyVia On
  1030.  
  1031.     #
  1032.     # To enable the cache as well, edit and uncomment the following lines:
  1033.     # (no cacheing without CacheRoot)
  1034.     #
  1035. #    CacheRoot "/private/var/run/proxy"
  1036. #    CacheSize 5
  1037. #    CacheGcInterval 4
  1038. #    CacheMaxExpire 24
  1039. #    CacheLastModifiedFactor 0.1
  1040. #    CacheDefaultExpire 1
  1041. #    NoCache a-domain.com another-domain.edu joes.garage-sale.com
  1042.  
  1043. #</IfModule>
  1044. # End of proxy directives.
  1045.  
  1046. ### Section 3: Virtual Hosts
  1047. #
  1048. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  1049. # machine you can setup VirtualHost containers for them. Most configurations
  1050. # use only name-based virtual hosts so the server doesn't need to worry about
  1051. # IP addresses. This is indicated by the asterisks in the directives below.
  1052. #
  1053. # Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
  1054. # for further details before you try to setup virtual hosts.
  1055. #
  1056. # You may use the command line option '-S' to verify your virtual host
  1057. # configuration.
  1058.  
  1059. #
  1060. # Use name-based virtual hosting.
  1061. #
  1062. NameVirtualHost *
  1063.  
  1064. #
  1065. # VirtualHost example:
  1066. # Almost any Apache directive may go into a VirtualHost container.
  1067. # The first VirtualHost section is used for requests without a known
  1068. # server name.
  1069. #
  1070. #<VirtualHost *:80>
  1071. #    ServerAdmin webmaster@dummy-host.example.com
  1072. #    DocumentRoot /www/docs/dummy-host.example.com
  1073. #    ServerName dummy-host.example.com
  1074. #    ErrorLog logs/dummy-host.example.com-error_log
  1075. #    CustomLog logs/dummy-host.example.com-access_log common
  1076. #</VirtualHost>
  1077.  
  1078. <IfModule mod_php4.c>
  1079.     # If php is turned on, we repsect .php and .phps files.
  1080.     AddType application/x-httpd-php .php
  1081.     AddType application/x-httpd-php-source .phps
  1082.  
  1083.     # Since most users will want index.php to work we
  1084.     # also automatically enable index.php
  1085.     <IfModule mod_dir.c>
  1086.         DirectoryIndex index.html index.php index
  1087.     </IfModule>
  1088. </IfModule>
  1089.  
  1090. <IfModule mod_rewrite.c>
  1091.     RewriteEngine On
  1092.     RewriteOptions inherit
  1093.     
  1094.     RewriteCond %{REQUEST_METHOD} ^TRACE
  1095.     RewriteRule .* - [F]
  1096. </IfModule>
  1097.  
  1098. <IfModule mod_bonjour.c>
  1099.     # Only the pages of users who have edited their
  1100.     # default home pages will be advertised on Bonjour.
  1101.     RegisterUserSite customized-users
  1102.     #RegisterUserSite all-users
  1103.  
  1104.     # Bonjour advertising for the primary site is off by default.
  1105.     #RegisterDefaultSite
  1106. </IfModule>
  1107.  
  1108. #Include /private/etc/httpd/users/*.conf
  1109.  
  1110.  
  1111. # begin entropy.ch PHP module activation
  1112. LoadModule php5_module        /usr/local/php5/libphp5.so
  1113.  
  1114. <IfDefine !APACHE2>
  1115. AddModule mod_php5.c
  1116. </IfDefine>
  1117.  
  1118. # end entropy.ch PHP module activation
  1119.  
  1120. # begin entropy.ch PHP module activation
  1121. AddType application/x-httpd-php .php
  1122. AddType application/x-httpd-php-source .phps
  1123.  
  1124. DirectoryIndex index.html index.php index
  1125. # end entropy.ch PHP module activation
  1126.